/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2025-04-02 14:45:40
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2025-04-04 18:36:11
 * @FilePath: postcss.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
module.exports = {
  plugins: {
    autoprefixer: {
      overrideBrowserslist: [
        "Android 4.1",
        "iOS 7.1",
        "Chrome > 31",
        "ff > 31",
        "ie >= 8",
      ],
    },
    "postcss-pxtorem": {
      rootValue: (module) => (module.file.includes("vant") ? 37.5 : 126), // vant组件库使用37.5，其他使用75
      propList: ["*"],
      minPixelValue: 2, // 小于2px不转换
    },
  },
};
